package org.opensourcedea.gui.events;

import java.lang.reflect.Field;

import org.eclipse.jface.action.*;
import org.eclipse.jface.resource.*;
import org.eclipse.swt.widgets.Shell;


public class Events_StatusAction extends Action {
	
	StatusLineManager statman;
	short triggercount = 0;
	
	public Events_StatusAction(StatusLineManager sm) {
		super("&Trigger Action@Ctrl+T");//, AS_PUSH_BUTTON);
		statman = sm;
		setToolTipText("Trigger the Action");
		setImageDescriptor(ImageDescriptor.createFromFile(this.getClass(),"application_xp_terminal.png"));
	}
	
	public void run() {
		triggercount++;
		statman.setMessage("The status action has fired. Count: " + triggercount);
		
		
	}
	
	
	
}
